//
//  GlobalInfo.h
//  upnpxdemo
//
//  Created by 赵帅 on 13-9-1.
//  Copyright (c) 2013年 wiimu.inc. All rights reserved.
//

#import <Foundation/Foundation.h>

enum deviceTypeEnum
{
    IPHONE35_TYPE,
    IPHONE4_TYPE,
    IPAD_TYPE
};

@interface GlobalInfo : NSObject
{
    //BasicUPnPDevice * currentSelectedUpnP;
    NSDictionary * currentSelectedUpnPInfo;
    NSString * currentBaseURL;
    BOOL isVersionNew;
    
    int errorCount;
    int deviceType;
    
    BOOL isDisconnect;
}

@property (retain) NSDictionary * currentSelectedUpnPInfo;
@property (retain) NSString * currentBaseURL;
@property (assign) int errorCount;
@property (assign) int deviceType;
@property (assign) BOOL isDisconnect;
@property (assign,readonly) BOOL isVersionNew;
@property (assign) NSMutableArray * upnpArray;
@property (retain) NSMutableArray * remoteArray;
@property (assign) int m_CmdSock;//wis socket
@property (retain) NSDictionary * currentPlayInfo;//当前的播放信息
@property (copy) NSString *deviceToken;
@property (retain) NSString *hostStr;
@property (retain) NSDictionary *selectedDic;
@property (strong) dispatch_queue_t sql_queue;

@property (assign) double webWidth;
@property (assign) double webHeight;

+ (GlobalInfo*) sharedInstance;
-(void)setIsVersionNew:(BOOL)version;

-(void)addWifiInfo:(NSString *)name password:(NSString *)pass;
-(NSString *)getWifiPassword:(NSString *)name;

-(BOOL)isMusicDeleteFile;
-(void)setMusicDeleteFile:(BOOL)deleteFile;

//add by anson 14-03
-(NSString *)getUniqueID;

#warning 临时使用的http
@property (readonly, nonatomic) NSString *tempHttpHost;
@property (readonly) NSInteger tempHttpPort;
+ (BOOL)isRunOnDevice;

@end
